home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / mike40c.arc / CURSOR.C < prev    next >
Text File  |  1986-10-23  |  543b  |  31 lines

  1. #include <dos.h>
  2.  
  3. del_cur()  /* Make cursor disappear */
  4. {
  5.     union REGS REG;
  6.  
  7.     REG.h.ah = 01;
  8.     REG.h.ch = 0x26;
  9.     REG.h.cl = 7;
  10.     int86(0x10, ®, ®);
  11. }
  12.  
  13. restor_cur()  /* Put cursor back on screen */
  14. {
  15.     union REGS REG;
  16.     unsigned    st, en;
  17.  
  18.     if (get_mode() == 7)   /* check for monochrome */
  19.         st = 12, en = 13;
  20.     else
  21.         st = 6, en = 7;   /* if not set for color */
  22.  
  23.     REG.h.ah = 01;
  24.     REG.h.bh = 00;
  25.     REG.h.ch = st;
  26.     REG.h.cl = en;
  27.     int86(0x10, ®, ®);
  28. }
  29.  
  30.  
  31.